package com.mer.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mer.entity.TeacherExamine;
import com.mer.vo.TeacherExamineVo;
import org.apache.ibatis.annotations.Param;

/**
 * @program: IIPhase-project
 * @description: 教师审核数据操作层
 * @author: 张庆恒
 * @create: 2021-10-20 14:34
 **/
public interface TeacherExamineMapper extends BaseMapper<TeacherExamine> {

    //查询未审核的讲师信息
    IPage<TeacherExamineVo> queryNotApprovedTeacher(IPage<TeacherExamineVo> iPage, @Param("ew") QueryWrapper<TeacherExamineVo> wrapper);

    //讲师审核
    int changeTeacherApproved(TeacherExamineVo teacherExamineVo);

    //审核成功修改状态
    int changeMember(String mobile);
}
